package com.techsoul.module.tms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.tms.pojo.entity.Driver;
import com.techsoul.module.tms.pojo.param.DriverSearchParam;
import com.techsoul.module.tms.pojo.vo.DriverVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhaowei
 * @since 2019 -11-11
 */
public interface DriverMapper extends BaseMapper<Driver> {
    /**
     * Find all list.
     *
     * @param params the params
     * @return the list
     */
    List<com.techsoul.module.tms.pojo.vo.DriverVo> findAll(@Param("params") DriverSearchParam params);
    Driver findById(@Param("id") String id);
    IPage<DriverVo> driverSearch(Page page, @Param("params") DriverSearchParam params);
    /**
     * Find all page.
     *
     * @param page the page
     * @param params the params
     * @return the page
     */
    IPage<com.techsoul.module.tms.pojo.vo.DriverVo> findAll(Page page, @Param("params") DriverSearchParam params);

    /**
     * listDriverDetail
     *
     * @param userId userId
     * @return List<DriverDetailVo>
     */



    /**
     * 查看司机认证状态及相关信息
     *
     * @param id id
     * @return Map<String, String>
     */
    List<Map<String, String>> getDriverAuthStatus(@Param("id") String id);


}
